package org.obm.bigg.filters;

import java.util.List;

import org.apache.james.mime4j.dom.Message;
import org.obm.delivery.cassandra.filters.IFilterRule;
import org.obm.delivery.cassandra.filters.IRuleEngineImplementation;
import org.obm.lmtp.backend.LmtpAddress;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class RuleEngineImpl implements IRuleEngineImplementation {

	private Logger logger = LoggerFactory.getLogger(getClass());
	private List<IFilterRule> rules;

	@Override
	public void applyTo(LmtpAddress mailbox, Message msg) {
		// TODO Auto-generated method stub
		logger.info("Apply filters ("+rules.size()+" rules) for mailbox " + mailbox.getEmailAddress()
				+ " to " + msg.getMessageId());
	}

	@Override
	public void setRules(List<IFilterRule> rules) {
		this.rules = rules;
	}

}
